package com.group.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.group.entity.wms.WarehouseAreaEntity;
import com.group.mapper.WarehouseAreaMapper;
import com.group.service.WareHouseAreaService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WarehouseAreaServiceImpl extends ServiceImpl<WarehouseAreaMapper, WarehouseAreaEntity> implements WareHouseAreaService {

    @Override
    public List<WarehouseAreaEntity> findListByWarehouseId(Long warehouseId) {

        return this.baseMapper.selectList(new QueryWrapper<WarehouseAreaEntity>().eq("warehouse_id",warehouseId));
    }
}
